Crate tower_util

Source
Expand description

Various utility types and functions that are generally with Tower.

Modules§

Structs§

  • A boxed Service + Send trait object.
  • This is a futures::Stream of responses resulting from calling the wrapped tower::Service for each request received on the wrapped Stream.
  • A stream of responses received from the inner service in received order.
  • A Future consuming a Service and request, waiting until the Service is ready, and then calling Service::call with the request, and waiting for that Future.
  • Optionally forwards requests to an inner service.
  • A future that resolves when a Service is ready to accept a request.
  • A future that yields a mutable reference to the service when it is ready to accept a request.
  • A future that yields the service when it is ready to accept a request.
  • A Service implemented by a closure.
  • A boxed Service trait object.

Enums§

  • Combine two different service types into a single type.

Traits§

  • An extension trait for Services that provides a variety of convenient adapters

Functions§

  • Returns a new ServiceFn with the given closure.